_WebUrl="http://newtab-newtab.stor.sinaapp.com/";

_tabData = [{
    "id": 1,
    "name": "综合热门",
    "data": [{
        "id": "2",
        "title": "hao123导航",
        "weburl": "http://www.hao123.com",
        "img": _WebUrl + "m/1373351759_236296.png"
    }, {
        "id": "93",
        "title": "淘宝特卖",
        "weburl": "http://www.taobao.com",
        "img": _WebUrl + "m/1373351793_786566.png"
    }, {
        "id": "10",
        "title": "百度",
        "weburl": "http://www.baidu.com",
        "img": _WebUrl + "m/1373351755_788051.png"
    }, {
        "id": "75",
        "title": "优酷",
        "weburl": "http://www.youku.com",
        "img": _WebUrl + "m/1373351783_616843.png"
    }, {
        "id": "169",
        "title": "新浪微博",
        "weburl": "http://weibo.com",
        "img": _WebUrl + "m/1373351828_832331.png"
    }, {
        "id": "168",
        "title": "QQ空间",
        "weburl": "http://qzone.qq.com",
        "img": _WebUrl + "m/1373351828_33614.png"
    }, {
        "id": "92",
        "title": "京东商城",
        "weburl": "http://www.jd.com",
        "img": _WebUrl + "m/1373351794_401953.png"
    }, {
        "id": "171",
        "title": "网页游戏开服表",
        "weburl": "http://kai.daba.com",
        "img": _WebUrl + "m/1373427715_6539911.png"
    }, {
        "id": "172",
        "title": "360影视",
        "weburl": "http://v.360.cn",
        "img": _WebUrl + "m/1373429343_3172997.png"
    }, {
        "id": "53",
        "title": "4399",
        "weburl": "http://www.4399.com",
        "img": _WebUrl + "m/1373351772_317815.png"
    }, {
        "id": "6",
        "title": "搜狐",
        "weburl": "http://www.sohu.com",
        "img": _WebUrl + "m/1373351757_309168.png"
    }, {
        "id": "3",
        "title": "凤凰网",
        "weburl": "http://www.ifeng.com",
        "img": _WebUrl + "m/1373351758_468898.png"
    }]
}, {
    "id": 2,
    "name": "视频",
    "data": [{
        "id": "75",
        "title": "优酷",
        "weburl": "http://www.youku.com",
        "img": _WebUrl + "m/1373351783_616843.png"
    }, {
        "id": "172",
        "title": "360影视",
        "weburl": "http://v.360.cn",
        "img": _WebUrl + "m/1373429343_3172997.png"
    }, {
        "id": "72",
        "title": "爱奇艺",
        "weburl": "http://www.iqiyi.com",
        "img": _WebUrl + "m/1373351784_569990.png"
    }, {
        "id": "173",
        "title": "新浪视频",
        "weburl": "http://video.sina.com.cn",
        "img": _WebUrl + "m/1373429409_723516.png"
    }, {
        "id": "62",
        "title": "m1905电影",
        "weburl": "http://www.m1905.com",
        "img": _WebUrl + "m/1373351789_836218.png"
    }, {
        "id": "65",
        "title": "腾讯视频",
        "weburl": "http://v.qq.com/index.html",
        "img": _WebUrl + "m/1373351788_111952.png"
    }, {
        "id": "66",
        "title": "豆瓣电影",
        "weburl": "http://movie.douban.com",
        "img": _WebUrl + "m/1373351787_357160.png"
    }, {
        "id": "67",
        "title": "Mtime时光网",
        "weburl": "http://www.mtime.com",
        "img": _WebUrl + "m/1373351787_510840.png"
    }, {
        "id": "68",
        "title": "凤凰视频",
        "weburl": "http://v.ifeng.com",
        "img": _WebUrl + "m/1373351786_937478.png"
    }, {
        "id": "71",
        "title": "乐视网",
        "weburl": "http://www.letv.com",
        "img": _WebUrl + "m/1373351785_333729.png"
    }, {
        "id": "73",
        "title": "搜狐高清",
        "weburl": "http://tv.sohu.com",
        "img": _WebUrl + "m/1373351784_659918.png"
    }, {
        "id": "74",
        "title": "土豆",
        "weburl": "http://www.tudou.com",
        "img": _WebUrl + "m/1373351783_197809.png"
    }]
}, {
    "id": 3,
    "name": "购物",
    "data": [{
        "id": "93",
        "title": "淘宝特卖",
        "weburl": "http://www.taobao.com",
        "img": _WebUrl + "m/1373351793_786566.png"
    }, {
        "id": "78",
        "title": "聚美优品",
        "weburl": "http://www.jumei.com",
        "img": _WebUrl + "m/1373351801_684942.png"
    }, {
        "id": "92",
        "title": "京东商城",
        "weburl": "http://www.jd.com",
        "img": _WebUrl + "m/1373351794_401953.png"
    }, {
        "id": "90",
        "title": "凡客诚品",
        "weburl": "http://www.vancl.com",
        "img": _WebUrl + "m/1373351795_805105.png"
    }, {
        "id": "84",
        "title": "一号店",
        "weburl": "http://www.yihaodian.com/product/index.do",
        "img": _WebUrl + "m/1373351798_760067.png"
    }, {
        "id": "77",
        "title": "乐蜂网",
        "weburl": "http://www.lefeng.com",
        "img": _WebUrl + "m/1373351801_877186.png"
    }, {
        "id": "83",
        "title": "唯品会",
        "weburl": "http://shop.vipshop.com",
        "img": _WebUrl + "m/1373351798_83941.png"
    }, {
        "id": "85",
        "title": "当当网",
        "weburl": "http://www.dangdang.com",
        "img": _WebUrl + "m/1373351797_101165.png"
    }, {
        "id": "88",
        "title": "苏宁易购",
        "weburl": "http://www.suning.com",
        "img": _WebUrl + "m/1373351796_81924.png"
    }, {
        "id": "89",
        "title": "国美在线",
        "weburl": "http://www.gome.com.cn/ec/homeus/index.html",
        "img": _WebUrl + "m/1373351795_465939.png"
    }, {
        "id": "91",
        "title": "天猫商城",
        "weburl": "http://www.tmall.com",
        "img": _WebUrl + "m/1373351794_791946.png"
    }, {
        "id": "95",
        "title": "亚马逊",
        "weburl": "http://www.amazon.cn",
        "img": _WebUrl + "m/1373351792_944219.png"
    }]
}, {
    "id": 5,
    "name": "酷站",
    "data": [{
        "id": "111",
        "title": "起点中文",
        "weburl": "http://www.qidian.com",
        "img": _WebUrl + "m/1373351802_362446.png"
    }, {
        "id": "20",
        "title": "虾米音乐",
        "weburl": "http://www.xiami.com",
        "img": _WebUrl + "m/1373351766_479938.png"
    }, {
        "id": "21",
        "title": "豆瓣电台",
        "weburl": "http://douban.fm",
        "img": _WebUrl + "m/1373351765_77751.png"
    }, {
        "id": "24",
        "title": "美丽说",
        "weburl": "http://www.meilishuo.com/welcome",
        "img": _WebUrl + "m/1373351764_441399.png"
    }, {
        "id": "27",
        "title": "花瓣网",
        "weburl": "http://huaban.com",
        "img": _WebUrl + "m/1373351762_417700.png"
    }, {
        "id": "30",
        "title": "美食天下",
        "weburl": "http://www.meishichina.com",
        "img": _WebUrl + "m/1373351761_928764.png"
    }, {
        "id": "32",
        "title": "糗事百科",
        "weburl": "http://www.qiushibaike.com",
        "img": _WebUrl + "m/1373351760_193751.png"
    }, {
        "id": "115",
        "title": "参考消息",
        "weburl": "http://www.cankaoxiaoxi.com",
        "img": _WebUrl + "m/1373351818_929698.png"
    }, {
        "id": "133",
        "title": "火车时刻表",
        "weburl": "http://huoche.kuxun.cn",
        "img": _WebUrl + "m/1373351827_59915.png"
    }, {
        "id": "134",
        "title": "天气查询",
        "weburl": "http://www.weather.com.cn",
        "img": _WebUrl + "m/1373351826_313858.png"
    }, {
        "id": "142",
        "title": "12306",
        "weburl": "http://www.12306.cn/mormhweb",
        "img": _WebUrl + "m/1373351822_942838.png"
    }, {
        "id": "147",
        "title": "58同城",
        "weburl": "http://www.58.com",
        "img": _WebUrl + "m/1373351820_310724.png"
    }]
}];

d = [
	{"name":"baidu","data":{"name":chrome.i18n.getMessage('baidu'),"homeurl":"http://wwww.baidu.com/","action":"http://www.baidu.com/s?","keyname":"wd","param":"ie=utf-8"}},
	{"name":"google","data":{"name":chrome.i18n.getMessage('google'),"homeurl":"http://www.google.com.hk","action":"http://www.google.com.hk/search?","keyname":"q","param":"hl=zh-CN,ie=utf-8"}},
	{"name":"so360","data":{"name":chrome.i18n.getMessage('search360'),"homeurl":"http://wwww.so.com","action":"http://www.so.com/s?","keyname":"q","param":"ie=utf-8"}},
	{"name":"sogou","data":{"name":chrome.i18n.getMessage('sogou'),"homeurl":"http://wwww.sogou.com","action":"http://www.sogou.com/sogou?","keyname":"query","param":""}}
];